﻿
using L.M.Review.Application.IServices;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace L.M.Review.Read.API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class Process_instanceController : ControllerBase
    {
        private readonly IProcess_instanceServices process_InstanceServices;
        public Process_instanceController(IProcess_instanceServices process_InstanceServices)
        {
            this.process_InstanceServices = process_InstanceServices;
        }

        [HttpGet]
        public async Task<IActionResult> GetInforShow(string? rId)
        {
            var list = (await process_InstanceServices.GetShowQueryableAsync(c => c.operator_number == rId)).ToList();
            return Ok(list);
        }
    }
}
